package top.mcwebsite.lib.route.api

import androidx.navigation.NavHostController

fun NavHostController.navigate(request: RouterRequest) {
    navigate(request.routePath)
    if (request.params != null) {
        currentBackStackEntry?.arguments?.putAll(request.params)
    }
}